put "Click and drag to adjust the " & pColorField.word[2] & " level." into field "status"
end
on mouseDown me
slidecolor(me)
end
on mouseLeave me
put EMPTY into field "status"
end
on resetcolorslider
put 0 into field "RGB Red status"
put 0 into field "RGB Green status"
put 0 into field "RGB Blue status"
sprite(181).locH = sprite(180).left
sprite(183).locH = sprite(180).left
sprite(185).locH = sprite(180).left
end
on slidecolor newloch
repeat while the mouseDown
newloch = the mouseH
if newloch < sprite(180).left then
newloch = sprite(180).left
end if
if newloch > sprite(180).right then
newloch = sprite(180).right
end if
pMySprite.locH = newloch
put integer((newloch - sprite(180).left) / 100.0 * 255) into field pColorField
gCurrentColor = rgb(integer(the text of field "RGB Red status"), integer(the text of field "RGB Green status"), integer(the text of field "RGB Blue status"))
updateStage()
updatecolors()
end repeat
end
on adjustcolor newloch
if newloch < sprite(180).left then
newloch = sprite(180).left
end if
if newloch > sprite(180).right then
newloch = sprite(180).right
end if
pMySprite.locH = newloch
gCurrentColor = rgb(integer(the text of field "RGB Red status"), integer(the text of field "RGB Green status"), integer(the text of field "RGB Blue status"))